.class Lcom/fiberhome/xloc/broadcast/e;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/fiberhome/xloc/broadcast/LocalService;


# direct methods
.method constructor <init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V
    .locals 0

    iput-object p1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v4, 0x1

    iget v0, p1, Landroid/os/Message;->what:I

    const/16 v1, 0x3e8

    if-ne v0, v1, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u5b9a\u4f4d:\u7535\u91cf "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->b(Lcom/fiberhome/xloc/broadcast/LocalService;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    new-instance v1, Lcom/fiberhome/xloc/c/b;

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v2}, Lcom/fiberhome/xloc/broadcast/LocalService;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v3}, Lcom/fiberhome/xloc/broadcast/LocalService;->b(Lcom/fiberhome/xloc/broadcast/LocalService;)I

    move-result v3

    invoke-direct {v1, v2, v3}, Lcom/fiberhome/xloc/c/b;-><init>(Landroid/content/Context;I)V

    invoke-static {v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Lcom/fiberhome/xloc/c/b;)Lcom/fiberhome/xloc/c/b;

    new-instance v0, Lcom/fiberhome/xloc/broadcast/g;

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-direct {v0, v1}, Lcom/fiberhome/xloc/broadcast/g;-><init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/fiberhome/xloc/c/b;->a(Lcom/fiberhome/xloc/c/d;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->d(Lcom/fiberhome/xloc/broadcast/LocalService;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/fiberhome/xloc/c/b;->a(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    :try_start_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/fiberhome/xloc/b/a/d;

    if-eqz v0, :cond_c

    invoke-virtual {v0}, Lcom/fiberhome/xloc/b/a/d;->a()Ljava/lang/String;

    move-result-object v1

    iget v2, p1, Landroid/os/Message;->arg1:I

    const/16 v3, 0x7d1

    if-ne v2, v3, :cond_b

    invoke-virtual {v0}, Lcom/fiberhome/xloc/b/a/d;->d()Z

    move-result v2

    if-eqz v2, :cond_b

    const-string/jumbo v2, "0"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/a/b;->a(Landroid/content/Context;)Lcom/fiberhome/xloc/a/b;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v2}, Lcom/fiberhome/xloc/broadcast/LocalService;->e(Lcom/fiberhome/xloc/broadcast/LocalService;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/fiberhome/xloc/a/b;->a(Ljava/util/ArrayList;)V

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/a/b;->a(Landroid/content/Context;)Lcom/fiberhome/xloc/a/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/xloc/a/b;->d()I

    move-result v1

    if-lez v1, :cond_2

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "\u4e0a\u4f20:\u6709"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\u6761\u6570\u636e\u9700\u8981\u4e0b\u6b21\u4e0a\u4f20"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    :cond_2
    invoke-virtual {v0}, Lcom/fiberhome/xloc/b/a/d;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v2, v1, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Ljava/lang/String;Lcom/fiberhome/xloc/b/a/d;)Z

    move-result v0

    const-string/jumbo v2, "8"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v0, "\u4e0a\u4f20:\u5468\u671f\u4e0a\u4f20\u540e\u8fd4\u56de\u8c03\u8bd5\u72b6\u6001\u7801,\u4e0a\u4f20\u65e5\u5fd7"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/d/g;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_3

    const-string/jumbo v1, "\u4e0a\u4f20:\u5f00\u59cb\u4e0a\u62a5\u65e5\u5fd7"

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    new-instance v1, Lcom/fiberhome/xloc/b/a/c;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->e()Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-direct {v1, v2, v3, v0}, Lcom/fiberhome/xloc/b/a/c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/fiberhome/xloc/b/b;

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v2}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v0, v2, v1}, Lcom/fiberhome/xloc/b/b;-><init>(Landroid/os/Handler;Lcom/fiberhome/xloc/b/a/h;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_3
    :goto_1
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/c/b;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    :cond_4
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0, v4}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Z)Z

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto/16 :goto_0

    :cond_5
    :try_start_1
    const-string/jumbo v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string/jumbo v1, "\u4e0a\u4f20:\u901a\u77e5\u670d\u52a1\u5668\u4efb\u52a1\u66f4\u6539\u7ed3\u679c"

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    new-instance v1, Lcom/fiberhome/xloc/b/a/b;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v2

    iget-object v2, v2, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    if-ne v0, v4, :cond_7

    const-string/jumbo v0, "0"

    :goto_2
    invoke-direct {v1, v2, v0}, Lcom/fiberhome/xloc/b/a/b;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/fiberhome/xloc/b/b;

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v2}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v0, v2, v1}, Lcom/fiberhome/xloc/b/b;-><init>(Landroid/os/Handler;Lcom/fiberhome/xloc/b/a/h;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    const-wide/16 v0, 0x3a98

    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catch_0
    move-exception v0

    :try_start_2
    new-instance v1, Ljava/io/StringWriter;

    invoke-direct {v1}, Ljava/io/StringWriter;-><init>()V

    new-instance v2, Ljava/io/PrintWriter;

    invoke-direct {v2, v1}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V

    invoke-virtual {v0, v2}, Ljava/lang/Exception;->printStackTrace(Ljava/io/PrintWriter;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u4e0a\u4f20:\u5931\u8d25,\u5f02\u5e38\u539f\u56e0:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v1}, Ljava/io/StringWriter;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/c/b;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    :cond_6
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0, v4}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Z)Z

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto/16 :goto_0

    :cond_7
    :try_start_3
    const-string/jumbo v0, "1"

    goto :goto_2

    :cond_8
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u4e0a\u4f20:\u5931\u8d25,resultcode="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto/16 :goto_1

    :catchall_0
    move-exception v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v1

    if-eqz v1, :cond_9

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/xloc/c/b;->a()Z

    move-result v1

    if-eqz v1, :cond_a

    :cond_9
    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1, v4}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Z)Z

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/e;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    :cond_a
    throw v0

    :cond_b
    :try_start_4
    const-string/jumbo v0, "\u4e0a\u4f20:\u5931\u8d25"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto/16 :goto_1

    :cond_c
    const-string/jumbo v0, "\u4e0a\u4f20:\u5931\u8d25,\u54cd\u5e94\u4e3a\u7a7a"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto/16 :goto_1
.end method
